package com.gxa.hualianeshop.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author bill
 * @since 2023-07-28
 */
@Getter
@Setter
@TableName("order_item")
@ApiModel(value = "OrderItem对象", description = "订单详情表")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自动增长主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单编号")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty("购物项中的商品sku的编号")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty("购买的数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty("sku商品的名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("商品单价")
    @TableField("price")
    private Long price;


}
